package com.yazi.mxz.common.service;


import com.myframework.smhj.common.exception.MyException;
import com.myframework.smhj.hibernate.dao.Service;

import com.yazi.mxz.common.entity.beans.Company;
import com.yazi.mxz.common.entity.beans.Store;

public interface StoreService extends Service<Store> {
	
	/**
	 * 添加店铺
	 * @param company 企业(游离对象)
	 * @param store 店铺(构建对象)
	 * @return
	 */
	Store addByCompany(Company company, Store store) throws MyException;

	/**
	 * 更新店铺
	 * @param company 企业(游离对象)
	 * @param store 店铺(构建对象)
	 * @return
	 */
	Store editByCompany(Company company, Store store) throws MyException;
	
	
	/**
	 * 修改店铺
	 * @param from 用来覆盖的店铺(构建对象)
	 * @param to 被覆盖的店铺(游离对象)
	 * @return
	 */
	Store editByStore(Store from, Store to);
	
}
